import { constantRoutes } from '@/router/index'

export default {
  namespaced: true,
  state: {
    // 动态路由的菜单数据 加过滤出来的静态路由(canLook)
    list: []
  },

  mutations: {
    setList (state, payload) {
      state.list = [...constantRoutes, ...payload]
    }
  }

}
